text = "C"
hex_str = text.encode('utf-8').hex()
print(hex_str)

data = bytes("你好12", "utf-8")  # b'\xe4\xbd\xa0\xe5\xa5\xbd'
print(data)